/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: XMQ
 * Date: 2022-05-15
 * Time: 9:09
 */
//抽象类
abstract class Animal{
    abstract void func();
}
class Dog extends Animal{

    @Override
    void func() {
        System.out.println("这是一个抽象方法！");
    }
}
public class Test {

}
